import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加班级活动缺席
export function addAbsentActivities(data) {
  return request({
    url: baseUrl + "/pc/absent-activities",
    method: "post",
    data
  });
}

//查询班级活动缺席
export function getAbsentActivities(data) {
  return request({
    url: baseUrl + "/pc/absent-activities",
    method: "get",
    params: data
  });
}

//删除班级活动缺席
export function deleteAbsentActivities(data) {
  return request({
    url: baseUrl + "/pc/absent-activities",
    method: "delete",
    data
  });
}

//更新班级活动缺席
export function updateAbsentActivities(data) {
  return request({
    url: baseUrl + "/pc/absent-activities",
    method: "put",
    data
  });
}